import 'package:flutter/material.dart';
import 'package:local_coffee/components/c_appbar/custom_appbar.dart';
import 'package:local_coffee/components/hex.dart';
import 'package:local_coffee/components/rgba.dart';
import 'package:local_coffee/routes/index.dart';

class DiningCode extends StatefulWidget {
  
  DiningCode();

  _DiningCodeState createState() => _DiningCodeState();
}

class _DiningCodeState extends State<DiningCode> {
  
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: customAppBar(
        title: '取餐码',
        context: context
      ),
      body: Container(
        child: Container(
          alignment: Alignment.center,
          margin: EdgeInsets.only(top: 10),
          padding: EdgeInsets.symmetric(vertical: 30),
          height: 395,
          color: HEX.hexfff,
          child: Column(
            children: <Widget>[
              Row(
                mainAxisAlignment: MainAxisAlignment.center,
                children: <Widget>[
                  Text(
                    '取餐码',
                    style: TextStyle(
                      color: RGBA.rgba383838,
                      fontSize: 18,
                      fontWeight: FontWeight.bold
                    ),
                  ),
                  Text(
                    '432',
                    style: TextStyle(
                      color: RGBA.rgba88afd5,
                      fontSize: 18,
                      fontWeight: FontWeight.bold
                    ),
                  ),
                  Text(
                    'piu~sir, 请扫码取餐',
                    style: TextStyle(
                      color: RGBA.rgba383838,
                      fontSize: 14,
                      fontWeight: FontWeight.bold
                    ),
                  ),
                ],
              ),
              Container(
                margin: EdgeInsets.only(top: 40),
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: <Widget>[
                    Image.asset(
                      P.qrCode258,
                      width: 155,
                      fit: BoxFit.cover,
                    )
                  ],
                ),
              ),
              Container(
                margin: EdgeInsets.only(top: 40),
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: <Widget>[
                    // Button.bigButton(
                      //   '分享餐码给好友',
                      //   bgColor: Colors.transparent,
                      //   color: rgba(144, 192, 239, 1),
                      //   border: Border.all(color: rgba(144, 192, 239, 1)),
                      //   height: 30,
                      //   fontSize: 14,
                      //   width: 150,
                      // )
                  ],
                ),
              )
            ],
          ),
        ),
      ),
    );
  }
}